PV-on-HVM: Fix __xen_suspend() for changed XenLinux interface.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 29 Feb 2008 10:30:28 +0000 (10:30 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 29 Feb 2008 10:30:28 +0000 (10:30 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c

index f1f5a4558dce68a242effb11a972f8adac68d970..5517039bd8b5ff71e6ecce612c6966e2ffd24be8 100644 (file)
@@ -71,7 +71,7 @@ static int bp_suspend(void)
        return suspend_cancelled;
 }
 
-int __xen_suspend(int fast_suspend)
+int __xen_suspend(int fast_suspend, void (*resume_notifier)(void))
 {
        int err, suspend_cancelled, nr_cpus;
        struct ap_suspend_info info;
@@ -101,6 +101,7 @@ int __xen_suspend(int fast_suspend)
 
        local_irq_disable();
        suspend_cancelled = bp_suspend();
+       resume_notifier();
        local_irq_enable();
 
        smp_mb();